<?

if( isset($_POST['name']) AND isset($_POST['bhard'])) {
    $name =  $_POST['name'];
    //$bsoft = intval($_POST['bsoft']);
    $bhard =  intval($_POST['bhard']);

    //if ($bsoft>$bhard) {
    //	$bhard = $bsoft;
    //}

    $bsoft = $bhard;

    exec('/usr/sbin/quotatool -u '.$name.' -bq '.$bsoft.'M -l '.$bhard.'M /');
}
?>
